package wxk.interview.spring.ioc.beans;

/**
 * @author wangxuekai
 * @version 2.2
 * @Date 2017/3/28.
 * @since 2.2
 */
public  class Person {

    private String idNo;
    private String name;
    private Integer gender;

    public Person() {
    }

    public Person(String idNo, String name, Integer gender) {
        this.idNo = idNo;
        this.name = name;
        this.gender = gender;
    }

    public  Language  language(){
       return new Language();
    }


    public String getIdNo() {
        return idNo;
    }

    public void setIdNo(String idNo) {
        this.idNo = idNo;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Person{");
        sb.append("idNo='").append(idNo).append('\'');
        sb.append(", name='").append(name).append('\'');
        sb.append(", gender=").append(gender);
        sb.append('}');
        return sb.toString();
    }
}
